package org.weishe.tmall;

import java.io.IOException;

import org.apache.hadoop.io.LongWritable;
import org.apache.hadoop.io.NullWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;

/**
 * 数据清洗，去重
 * 
 * @author Andrew
 *
 */
public class FirstMapper extends Mapper<LongWritable, Text, Text, NullWritable> {

	private NullWritable nw=  NullWritable.get();

	@Override
	protected void map(LongWritable key, Text value, Mapper<LongWritable, Text, Text, NullWritable>.Context context)
			throws IOException, InterruptedException {
		context.write(value, nw);
	}

}
